package com.cloudsigns.factorymanager2.engineering.activity;

import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.cloudsigns.factorymanager2.R;

public class TeamMaintenanceOrderInformationFragment extends Fragment implements View.OnClickListener{
    private TextView edt_maintenance_address,edt_maintenance_numbering,edt_maintenance_types,edt_maintenance_content,edt_completion_date,edt_dispath_order_person_colon,edt_dispath_order_time_colon;
    private TextView btn_receive_order,btn_back_order;
    @Nullable
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.fragement_team_maintenance_order_information, null);
        edt_maintenance_address=view.findViewById(R.id.edt_maintenance_address);
        edt_maintenance_numbering=view.findViewById(R.id.edt_maintenance_numbering);
        edt_maintenance_types=view.findViewById(R.id.edt_maintenance_types);
        edt_maintenance_content=view.findViewById(R.id.edt_maintenance_content);
        edt_completion_date=view.findViewById(R.id.edt_completion_date);
        edt_dispath_order_person_colon=view.findViewById(R.id.edt_dispath_order_person_colon);
        edt_dispath_order_time_colon=view.findViewById(R.id.edt_dispath_order_time_colon);
        btn_receive_order=view.findViewById(R.id.btn_receive_order);
        btn_back_order=view.findViewById(R.id.btn_back_order);

        btn_receive_order.setOnClickListener(this);
        btn_back_order.setOnClickListener(this);
        return view;
    }


    @Override
    public void onClick(View view) {
        switch (view.getId()){
            // 接收工单
            case R.id.btn_receive_order:
                break;
            // 退回工单
            case R.id.btn_back_order:
                break;
        }
    }
}
